﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Adams.Public.Web.Business.Web.Businesses
{
    public class Search
    {
        public static Adams.Public.DataTransfer.Web.Businesses.Search.PageLoad PageLoad(string search)
        {
            var input = new Adams.Public.DataTransfer.Businesses.SearchBusinesssInput()
            {
                Search = search
            };

            var model = new Adams.Public.DataTransfer.Web.Businesses.Search.PageLoad();
            model.Criteria = search;
            model.Businesss = Api.GetData<Adams.Shared.Entities.Businesses.BusinessCollection>("Businesses/SearchBusinesss", input);
            return model;
        }
    }
}
